﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_SalesOrg : DataObject
    {
        [Column]
        public string Sales_Organization { get { return _Sales_Organization; } set { _Sales_Organization = value; EntityState.FieldChange("Sales_Organization"); } }
        private string _Sales_Organization;
        public static FieldInfo sales_organization = new FieldInfo("m_SalesOrg", "Sales_Organization");

        [Column]
        public string Distribution_Channel { get { return _Distribution_Channel; } set { _Distribution_Channel = value; EntityState.FieldChange("Distribution_Channel"); } }
        private string _Distribution_Channel;
        public static FieldInfo distribution_channel = new FieldInfo("m_SalesOrg", "Distribution_Channel");

        [Column]
        public string Name { get { return _Name; } set { _Name = value; EntityState.FieldChange("Name"); } }
        private string _Name;
        public static FieldInfo name = new FieldInfo("m_SalesOrg", "Name");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("Sales_Org", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("Sales_Org", "Status");
    }
}
